package com.sc.nft.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class ShuJuBaoLiveDetectionVO implements Serializable {
    @ApiModelProperty(name = "响应编码，具体见“活体检测响应编码表")
    private String code;
    @ApiModelProperty(name = "响应信息")
    private String message;
    @ApiModelProperty(name = "分数")
    private String backScore;
    @ApiModelProperty(name = "活体检测结果")
    private String backResult;
    @ApiModelProperty(name = "接口调用序列号，每次请求唯一，可用于排错")
    private String backNo;
    @ApiModelProperty(name = "序列号，唯一识别一次请求，与同名入参同值")
    private String serialNumber;
    @ApiModelProperty(name = "用户IP")
    private String sourceIp;
    @ApiModelProperty(name = "对应的token")
    private String token;
    @ApiModelProperty(name = "图片ID，支持加密，与签名加密配置一致，解密代码详见“响应参数解密说明")
    private String backImg;
    @ApiModelProperty(name = "视频ID，支持加密，与签名加密配置一致，解密代码详见“响应参数解密说明")
    private String backVideo;
    @ApiModelProperty(name = "银行卡号")
    private String idCardNo;
    @ApiModelProperty(name = "名称")
    private String name;

    public static ShuJuBaoLiveDetectionVO build(String code, String message, String backScore, String backResult,
                                                String backNo, String serialNumber, String sourceIp, String token,
                                                String backImg, String backVideo) {
        ShuJuBaoLiveDetectionVO shuJuBaoLiveDetectionVO = new ShuJuBaoLiveDetectionVO();
        shuJuBaoLiveDetectionVO.setCode(code);
        shuJuBaoLiveDetectionVO.setMessage(message);
        shuJuBaoLiveDetectionVO.setBackScore(backScore);
        shuJuBaoLiveDetectionVO.setBackResult(backResult);
        shuJuBaoLiveDetectionVO.setBackNo(backNo);
        shuJuBaoLiveDetectionVO.setSerialNumber(serialNumber);
        shuJuBaoLiveDetectionVO.setSourceIp(sourceIp);
        shuJuBaoLiveDetectionVO.setToken(token);
        shuJuBaoLiveDetectionVO.setBackImg(backImg);
        shuJuBaoLiveDetectionVO.setBackVideo(backVideo);
        return shuJuBaoLiveDetectionVO;
    }
}
